<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0" />
        <title>登陆</title>
        <link rel="stylesheet" href="../Semantic-UI-CSS-master/semantic.min.css"/>
        <link rel="stylesheet" href="../css/me.css"/>
	</head>
	<body style="background-color: #1F4661">

    <div class="ui text container" style="width: 30% !important;margin-top: 10%!important;">
    <div class="ui middle aligned center aligned grid">
        <div class="column">
            <h2 class="ui teal image header">
                <img src="../img/logo-icon-3.png" class="image" />
                <div class="content">
                    登录博客
                </div>
            </h2>
            <form class="ui large form" action="/admin/login" method="post">
                <div class="ui stacked segment">
                    <div class="field">
                        <div class="ui left icon input">
                            <i class="user icon"></i>
                            <input type="text" name="username" placeholder="用户名">
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui left icon input">
                            <i class="lock icon"></i>
                            <input type="password" name="password" placeholder="密码">
                        </div>
                    </div>
                    <button class="ui fluid large teal submit button">登录</button>
                </div>

                <div class="ui error message">
<!--                <div class="ui mini message" th:unless="${#strings.isEmpty(message)}"th:text="${message}"></div>-->

                </div>

            </form>

            <div class="ui message">
                新用户？ <a href="login.php#">注册</a>
            </div>
        </div>
    </div>
    </div>

        <script src="../Semantic-UI-CSS-master/jquery.js"></script>
        
        <script src="../Semantic-UI-CSS-master/semantic.min.js"></script>
        <script>
            $(".menu.toggle").click(function(){
                $(".m-item").toggleClass("m-mobile-hide");
            });
       $('.ui.dropdown').dropdown();

            $('.ui.form').form({
                fields: {
                    username: {
                        identifier: "username",
                        rules: [{
                            type: "empty",
                            prompt: "请输入用户名"
                        }]
                    },
                    password: {
                        identifier: "password",
                        rules: [{
                            type: "empty",
                            prompt: "请输入密码"
                        }]
                    }
                }
            })
        </script>
    </body>
</html>
